import 'package:flutter/material.dart';

/// 使用
/// return const HelloText();

class HelloText extends StatelessWidget {
  const HelloText({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Hello Text',
      home: Scaffold(
        body: Center(
          // Text API : https://api.flutter-io.cn/flutter/widgets/Text-class.html
          child: Text(
            '22Hello World!',
            textAlign: TextAlign.center,
            overflow: TextOverflow.ellipsis,
            maxLines: 1,
            style: TextStyle(
              color: Color.fromRGBO(200, 150, 150, 1),
              fontSize: 40.0,
              fontWeight: FontWeight.bold,
            ),
          ),
        ),
      ),
    );
  }
}